package com.co.server.service.user.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.co.common.dao.BaseDao;
import com.co.common.service.BaseServiceImpl;
import com.co.server.dao.user.TUserLoginDao;
import com.co.server.entity.user.TUserLogin;
import com.co.server.entity.user.aide.TUserLoginQuery;
import com.co.server.service.user.TUserLoginService;

@Service
public class TUserLoginServiceImpl extends BaseServiceImpl<TUserLogin, Integer> implements TUserLoginService {
    @Resource
    private TUserLoginDao tUserLoginDao;

    @Override
    protected BaseDao<TUserLogin, Integer> getBaseDao() {
        return tUserLoginDao;
    }

	public TUserLogin queryByRememberKey(String rememberKey) {
		TUserLoginQuery query = new TUserLoginQuery();
		query.setRememberKey(rememberKey);
		return queryOne(query);
	}
}